package com.hdoit.ares.logical.ser.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.ares.logical.ser.model.Staff;
import com.hdoit.ares.logical.viewmodel.ser.StaffSearch;
import com.tennetcn.common.dao.base.IMapper;
import com.tennetcn.common.message.PagerModel;

/**
 * @author      lvsi
 * @email       
 * @createtime  2017年11月27日 11:23:53
 * @comment
 */
@Repository(value="staffMapper")
public interface StaffMapper extends IMapper<Staff>{

	public int queryStaffCountById(@Param("search")StaffSearch staffSearch,@Param("loginId")String loginId);
	
	public List<Staff> queryStaffListById(@Param("search")StaffSearch staffSearch,@Param("pager")PagerModel pagerModel,@Param("loginId")String loginId);
	
	public List<Staff> queryStaffById(@Param("loginId")String loginId);
	
	public List<Staff> queryAllStaff(@Param("search")StaffSearch staffSearch,@Param("pager")PagerModel pagerModel);
	
	public int queryAllStaffCount(@Param("search")StaffSearch staffSearch,@Param("pager")PagerModel pagerModel);
}